<script src="jquery-1.9.1.js" type="text/javascript"></script>

<script type="text/javascript">
  $(document).ready(function(){
    var txt = $('h1').text();
    console.log(txt);
    $('h1').text('');
    console.log($('h1').text());
  });
</script>

<h1>Hello Heading 1</h1>

